class JPushDeviceData {
  String? deviceName;
  String? pushType;
  String? deviceType;

  JPushDeviceData({this.deviceName, this.pushType, this.deviceType});

  JPushDeviceData.fromJson(Map<String, dynamic> jsonMap) {
    deviceName = jsonMap['deviceName'];
    pushType = jsonMap['pushType'];
    deviceType = jsonMap['deviceType'];
  }
  Map<String, dynamic> toJson() => {
        "deviceName": deviceName,
        "pushType": pushType,
        "deviceType": deviceType,
      };
}

class JpushBusiness {
  String? type;
  String? work; // 工作id
  String? docId; // 文档id
  String? chatId; // 会话id

  JpushBusiness({this.type, this.work, this.docId, this.chatId});

  factory JpushBusiness.fromJson(Map<String, dynamic> jsonMap) {
    return JpushBusiness(
      type: jsonMap['type'],
      work: jsonMap['work'],
      docId: jsonMap['docId'],
      chatId: jsonMap['chatId'],
    );
  }

  Map<String, dynamic> toJson() => {
        "type": type,
        "work": work,
        "docId": docId,
        "chatId": chatId,
      };
}
